﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EntityFrameworks.Application.Core.FileUpload
{
    /// <summary>
    /// 图像尺寸结构
    /// </summary>
    public struct ImageSize
    {
        public ImageSize(int width, int height)
            : this()
        {
            this.Width = width;
            this.Height = height;
        }
        public int Width { get; private set; }
        public int Height { get; private set; }
        /// <summary>
        /// 重写ToString()方法返回需要的信息
        /// </summary>
        /// <returns></returns>
        public override string ToString()
        {
            return string.Format("_{0}x{1}.jpg", this.Width, this.Height);
        }
    }
}
